import { getInfo } from "api/login";
import store from "store/index";

  // 函数表达式
  export const getAdminInfo = () =>{
    getInfo().then(res => {
      if(res.code === 200){
        store.commit("saveUserInfo", res.data);
      }
    })
  }